package com.wo.cloud.tenant;

import com.wo.cloud.tenant.handler.WoCloudTenantHandler;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * @author liry
 * @version 1.0
 * @date Created on 2021/4/11 21:57
 * Description:
 */
@SpringBootApplication
@MapperScan("com.wo.cloud.tenant.mapper")
public class TenantApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(TenantApplication.class, args);
        String[] beanNamesForType = run.getBeanNamesForType(WoCloudTenantHandler.class);
        for (String s : beanNamesForType) {
            System.out.println("===================="+s);
        }
    }
}
